﻿using FreeSql.DataAnnotations;
using Newtonsoft.Json;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace  Frame.Core.Models
{
    [Table(DisableSyncStructure = true)]
    public class GroupPowerViewModel
    {
        [JsonProperty]
        public int ID { get; set; }

        [JsonProperty]
        [Display(Name = "上级菜单")]
        public int? ParentID { get; set; }

        [JsonProperty]
        [Display(Name = "分组名称")]
        public string GroupName { get; set; }

        [JsonProperty]
        [Display(Name = "权限列表")]
        public List<Powers> Powers { get; set; }

    }
}